package com.chenfan.mcn.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author tangwei
 * Date:     2021/1/31 12:17
 * Description: 收入合同执行单导出Excel类型选择
 */

@AllArgsConstructor
@SuppressWarnings("AlibabaEnumConstantsMustHaveComment")
public enum ExcutionExportTypeEnum {

    /**
     * 收入合同执行单导出Excel类型选择
     */

    BASIC_INFO(0, "执行单基本信息"),

    EXCUTE_FEEDBACK(1, "执行反馈"),

    //PAID_ACCOUNT(2, "打款账户"),
    //改名为--收支信息
    CALCULATION_DIVIDED(3, "收支信息"),

    //PAID_INFO(4, "打款信息"),

    //KOC_EXCUTION_ORDER_INFO(5, "KOC执行单导出"),
    ;

    @Getter
    private Integer type;

    @Getter
    private String desc;


    public static ExcutionExportTypeEnum getByType(Integer type) {
        for (ExcutionExportTypeEnum value : ExcutionExportTypeEnum.values()) {
            if (type.equals(value.type)) {
                return value;
            }
        }
        return null;
    }
}